const Koa = require('koa')
const Koabody = require('koa-body')
const errHandler = require('./errHandler')

const userRouter = require('../router/user.router')

const app = new Koa();

app.use(Koabody())
app.use(userRouter.routes());

app.on('error',errHandler)

module.exports = app; 